diff --git a/protobuf.bzl b/protobuf.bzl
index c5b8dab38..de6d9cfe2 100644
--- a/protobuf.bzl
+++ b/protobuf.bzl
@@ -501,6 +501,7 @@ def py_proto_library(
         default_runtime = "@com_google_protobuf//:protobuf_python",
         protoc = "@com_google_protobuf//:protoc",
         use_grpc_plugin = False,
+        more_deps = [],
         **kargs):
     """Bazel rule to create a Python protobuf library from proto source files
 
@@ -541,7 +542,7 @@ def py_proto_library(
     proto_gen(
         name = name + "_genproto",
         srcs = srcs,
-        deps = [s + "_genproto" for s in deps],
+        deps = [s + "_genproto" for s in deps] + more_deps,
         includes = includes,
         protoc = protoc,
         gen_py = 1,
